﻿using FastORM.Entity;
using System;
using System.Collections.Generic;
using System.Text;

namespace FastCloud.Base.Desgin
{
    public interface IRepository<TEntity> where TEntity : BaseEntity
    {
        void Insert(TEntity Entity);
        void InsertBatch(List<TEntity> EntityList);
        void DeleteByID(string UnitGuid);
        void DeleteBatch(List<string> UnitGuidList);
        void UpdateByID(TEntity Entity);
        void UpdateBatch(List<TEntity> EntityList);
        TEntity SelectOne(string UnitGuid);
    }
}
